﻿using System.Collections.Generic;

namespace Tilver.Coder.Core
{
    /// <summary>
    /// 生成实体类(EO)代码
    /// </summary>
    public interface IEOGenerable
    {
        ///// <summary>
        ///// 数据库
        ///// </summary>
        //CoderDataBase DataBase { get; set; }
        /// <summary>
        /// 列集合
        /// </summary>
        List<CoderColumn> Columns { get; set; }
        /// <summary>
        /// 名称
        /// </summary>
        string Name { get; set; }
        /// <summary>
        /// 生成代码使用的名称
        /// </summary>
        string CodeName { get; set; }
        /// <summary>
        /// 实体类名称
        /// </summary>
        string EOName { get; set; }
        /// <summary>
        /// 架构名称
        /// </summary>
        string Owner { get; set; }
        /// <summary>
        /// 全名
        /// </summary>
        string FullName { get; set; }
        /// <summary>
        /// 是否有主健
        /// </summary>
        bool HasPrimaryKey { get; }
        /// <summary>
        /// 主键
        /// </summary>
        CoderPrimaryKey PrimaryKey { get; set; }
        /// <summary>
        /// 描述
        /// </summary>
        string Description { get; set; }

    }
}
